<template>
  <div class="DeatilGoodsInfo" v-if="Object.keys(detailInfo).length !== 0">
    <div class="strat"></div>
    <p class="desc">
      {{detailInfo.desc}}
    </p>
    <div class="stop-comb">
      <div class="stop"></div>
      <div class="stop-after"></div>
    </div>
    <p class="key-value">
      {{detailInfo.detailImage[0].key}}
    </p>
    <img v-for="(item, index) in detailInfo.detailImage[0].list" :key="index" :src="item" @load="imgLoad">
  </div>
</template>

<script>
  export default {
    name: "DeatilGoodsInfo",
    props: {
      detailInfo:{type:Object,default(){return {}}}
    },
    methods:{
      imgLoad(){
        this.$emit('imgLoad')
      }
    }
  }
</script>

<style scoped>
  .DeatilGoodsInfo img{
    width: 100vw;
    margin-left: -15px;
  }
  .key-value{
    color: #333;
    font-size: 15px;
    margin-top: 10px;
    margin-bottom: 15px;
  }
  .stop-comb{
    display: flex;
    justify-content: flex-end;
  }
  .stop{
    width: 90px;
    height: 1px;
    background-color: #a3a3a5;
    display: inline-block;
  }
  .stop-after{
    content: '';
    width: 5px;
    height: 5px;
    background-color: #000;
  }

  .desc{
    padding-top:17px ;
    padding-bottom:3px ;
  }
  .DeatilGoodsInfo{
    padding: 15px;
    font-size: 12px;
  }
  .strat::before{
    width: 5px;
    height: 5px;
    background-color: #000;
    content: '';
    display: block;
  }
  .strat{
    width: 90px;
    height: 1px;
    background-color: #a3a3a5;
  }
</style>